import { observe } from './observe';
import Watcher from './Watcher';

var obj = {
    a: {
        m: {
            n: 5
        }
    },
    b:10,
    g:[1,2,3,4]
}

observe(obj)
obj.a = 10
new Watcher(obj,'a.m.n',(val)=>{
    console.log('***',val);
})